Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>Click the button to display this window's height and width (NOT including toolbars and scrollbars).</p> <button onclick="myFunction()">Try it</button> <p><strong>Note:</strong> The innerWidth and innerHeight properties are not supported in IE8 and earlier.</p> <p id="demo"></p> <script> function myFunction() { var w = window.innerWidth; var h = window.innerHeight; document.getElementById("demo").innerHTML = "Width: " + w + "<br>Heigth: " + h; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_innerheight by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:27:49 GMT --> </html>
Result:
Try it Yourself - © w3schools.com